package vn.fpt.fsoft.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.fpt.fsoft.business.OrganisationBu;
import vn.fpt.fsoft.common.exception.MyException;
import vn.fpt.fsoft.dao.OrganisationDao;
import vn.fpt.fsoft.entities.Organisation;

@Service
public class OrganisationBuImpl implements OrganisationBu{
	@Autowired
	OrganisationDao organisationDao;
	public void setOrganisationDao(OrganisationDao organisationDao) {
		this.organisationDao = organisationDao;
	}
	@Override
	public List<Organisation> getAll() throws MyException {
		// TODO Auto-generated method stub
		return organisationDao.getAll();
	}

}
